package com.buaa.aimall.userModule.DTO;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class HomepageContentRequestDTO {
    
    @NotBlank(message = "排序类型不能为空")
    private String orderType;
    
    @NotNull(message = "当前页码不能为空")
    @Min(value = 1, message = "页码最小为1")
    private Integer currentPage;
    
    @NotNull(message = "每页大小不能为空")
    @Min(value = 1, message = "每页大小最小为1")
    private Integer pageSize;

    private String name;
} 